<%@ Import namespace="MIMS_WRS.Web" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="IDSHDReport.aspx.vb" Inherits="MIMS_WRS.Web.IDSHDReport"%>
<%@ Register TagPrefix="uc1" TagName="IDSHDReportHeader" Src="../../UserControls/IDSHDReportHeader.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>IDSHDReport</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<link href="../../report.css" type="text/css" rel="stylesheet">
		<style>
			.OrderReport SPAN.highlight { COLOR: black! important }
			.OrderReport SPAN.highlight2 { COLOR: red }
			.SpecialOffer { FONT-WEIGHT: bold; COLOR: red }
			.OrderReport1 
			{	
				border-collapse: collapse;
				border-color: black;
				width: 100%;	
				font-family: Arial, Tahoma;
				font-size: 8pt;	
			}

			.OrderReport1 td,
			.OrderReport1 th
			{
				padding: 0px;
				border-color: Black;
				border-width: 1px;
			}

			.OrderReport1 thead tr th
			{	
				background-color: lightgray;
				color: black;
				font-weight: bold;
			}
		</style>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<uc1:IDSHDReportHeader id="header" runat="server"></uc1:IDSHDReportHeader>
			<span id="spanNoneReport" runat="server" ><div id="ActionTop">
				<a href="../../StartPage.aspx">Front page</a>&nbsp;|&nbsp;<a href="../../login.aspx?logout=1">Logout</a>
				<br>
				<asp:Label id="lblErrorMsg" Runat="server"  ForeColor="red"></asp:Label>
			</span>
			
			<asp:datalist enableviewstate="False" width="100%" id="dlReport" runat="server" cellpadding="2"
				repeatcolumns="2" borderstyle="Solid" borderwidth="1px" bordercolor="Black" gridlines="Both"
				repeatdirection="Horizontal">
				<itemstyle width="50%"></itemstyle>
				<itemtemplate>
					<table cellpadding="0" cellspacing="0" border="0" width="100%">
						<tr>
							<td align="left" valign="top" width="32%"><%# GetPictureHTML(DataBinder.Eval(Container.DataItem, "ProductCode")) %></td>
							<td align="left" valign="top" width="65%" style="padding-left:5px"><table class="OrderReport" cellpadding="0" cellpadding="0" border="0">
									<tr>
										<td width="1%" nowrap>Code:</td>
										<td><%# DataBinder.Eval(Container.DataItem, "ProductCode")%></td>
									</tr>
									<tr>
										<%# GetCatalogPageHTML(Container) %>
									</tr>
									<tr>
										<td width="1%" nowrap>Color:</td>
										<td><%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "Color"))%></td>
									</tr>
									<tr>
										<td width="1%" nowrap>Desc:</td>
										<td><%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "SalesDescription1"))%></td>
									</tr>
									<tr style='<%# VisibleDescription2(DataBinder.Eval(Container.DataItem, "SalesDescription2"))%>'>
										<td width="1%" nowrap>&nbsp;</td>
										<td><%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "SalesDescription2"))%></td>
									</tr>
									<tr>
										<td colspan="2">
											<table class="OrderReport1"  cellpadding="0" cellspacing="0" border="0" width="99%" height="5px" style="table-layout:fixed">
												<%# DisplayBaseOnMaxMeasurementNumber(Container.DataItem)%>
											</table>
										</td>
									</tr>
									<tr>
										<td width="1%" nowrap>Qty Available:</td>
										<td><%# GetQtyAvailHTML(Container.DataItem)%>
											<%# GetQtyAvailDesc(Container.DataItem) %>
										</td>
									</tr>
									<tr>
										<td width="1%" nowrap></td>
										<td><font color="red"><%# GetReservedQtyText(Container)%></font></td>
									</tr>
									<% if (RequestContext.TerritoryID > 0) then %>
									<tr>
										<td width="1%" nowrap>Home Delivered Price:</td>
										<td><%# Utilities.GetDecimalText(DataBinder.Eval(Container.DataItem, "HomeDelivered15Price")) %>&nbsp;<%#Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "CurrencyCode")) %>
										</td>
									</tr>
									<tr>
										<td width="1%" nowrap>For Territory:</td>
										<td><%# GetTerritory() %>
										</td>
									</tr>
									<% elseif (RequestContext.ShowFOB) then %>
									<tr>
										<td width="1%" nowrap>FOB:</td>
										<td><%# GetFOB(DataBinder.Eval(Container.DataItem, "UnitFOBPrice"), DataBinder.Eval(Container.DataItem, "Pack"), Container.DataItem)%>
										</td>
									</tr>
									<% end if%>
									<tr>
										<td width="1%" nowrap>Minimum Order:</td>
										<td><%# GetMinOrderQtyValue(DataBinder.Eval(Container.DataItem, "MinOrderQtyValue"))%><%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "MinOrderQty"))%>
											
										</td>
									</tr>
									<tr>
										<td width="1%" nowrap>Tall Pallet Qty (for info only):</td>
										<td>
											<%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "TallPaletQty"))%>
											
										</td>
									</tr>
									<tr>
										<td width="1%" nowrap>Supplier No:</td>
										<td>
											<%# DataBinder.Eval(Container.DataItem, "SupplierCode")%> <%# DataBinder.Eval(Container.DataItem, "TypeCode")%> <%# DataBinder.Eval(Container.DataItem, "OwnerCode")%> <%# GetClearanceStockHTML(Container) %> <%# DataBinder.Eval(Container.DataItem, "StockLocation")%> 
										</td>
									</tr>
								</table>
							</td>
							<td class="ItemHighlight" style="vertical-align:top; width:10px">
								<asp:Literal id="ltrItemIndex" Runat="server"></asp:Literal></td>
						</tr>
					</table>
				</itemtemplate>
			</asp:datalist>
			<div id="ActionBottom">
			</div>
		</form>
	</body>
</HTML>
